<?php
/*
 * Created on May 2, 2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
class Course{
	var $courseid,$venue,$coursename,$par,$average,$diff,$cards,$result,$holelist,$deleted;
	
	public function __construct(){}
	
	public static function initWithParam($courseid,$coursename,$par,$average,$diff,$cards,$percentage1s,$percentage2s,$percentage3s,$percentage4s,$percentage5s){
		$obj = new Course();
		$obj->courseid = $courseid;
		$obj->coursename = $coursename;
		$obj->par = $par;
		$obj->average = $average;
		$obj->diff = $diff;
		$obj->cards = $cards;
		$obj->percentage1s = $percentage1s;
		$obj->percentage2s = $percentage2s;
		$obj->percentage3s = $percentage3s;
		$obj->percentage4s = $percentage4s;
		$obj->percentage5s = $percentage5s;
		return $obj;
	}
}
?>
